//package com.huatai.manage.controller;
//
//
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.huatai.common.api.R;
//import com.huatai.manage.entity.TbMessageTopicEntity;
//import com.huatai.manage.service.TbMessageTopicService;
//import com.huatai.manage.utils.ComUtil;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.validation.Valid;
//import java.util.List;
//
///**
// * <p>
// * 消息主题管理; 前端控制器
// * </p>
// *
// * @author luoxc
// * @since 2023-03-28
// */
//@RestController
//@RequestMapping("topic")
//@Api(value = "消息主题管理", tags = "消息主题管理")
//public class TbMessageTopicController {
//
//	@Autowired
//	private TbMessageTopicService tbMessageTopicService;
//
//	@GetMapping("list")
//	@ApiOperation(value = "查询所有数据", notes = "查询所有数据")
//	public R list() {
//		return R.data(this.tbMessageTopicService.list());
//	}
//
//	@ApiOperationSupport(order = 1, includeParameters = {
//		"messageTopicEntity.current",
//		"messageTopicEntity.size",
//		"messageTopicEntity.topicName",
//		"messageTopicEntity.topicType"
//	})
//	@PostMapping("pageList")
//	@ApiOperation(value = "分页查询", notes = "分页查询")
//	public R pageList(@RequestBody TbMessageTopicEntity messageTopicEntity) {
//		return R.data(this.tbMessageTopicService.pageList(messageTopicEntity));
//	}
//
//	@PostMapping("selectList")
//	@ApiOperation(value = "查询所有数据(壹瞰思)", notes = "查询所有数据(壹瞰思)")
//	public R selectList() {
//		return R.data(this.tbMessageTopicService.selectList());
//	}
//
//	@PostMapping("getByTopicId")
//	@ApiOperation(value = "通过主题id查询单条数据", notes = "通过主题id查询单条数据")
//	public R getOne(@ApiParam(name = "topicId",value = "主题id", required = true) @RequestParam("topicId") String topicId) {
//		return R.data(this.tbMessageTopicService.getByTopicId(topicId));
//	}
//
//	@PostMapping("insert")
//	@ApiOperation(value = "新增数据", notes = "新增数据")
//	public R insert(@Valid @RequestBody TbMessageTopicEntity messageTopicEntity) {
//		return R.status(this.tbMessageTopicService.save(messageTopicEntity.setTopicId(ComUtil.getUUID())));
//	}
//
//	@PostMapping("update")
//	@ApiOperation(value = "修改数据", notes = "修改数据")
//	public R update(@Valid @RequestBody TbMessageTopicEntity messageTopicEntity) {
//		return R.status(this.tbMessageTopicService.update(messageTopicEntity));
//	}
//
//	@PostMapping("removes")
//	@ApiOperation(value = "批量删除", notes = "批量删除")
//	public R removes(@RequestBody RemoveEntity remove) {
//		return R.status(this.tbMessageTopicService.removes(topicIds));
//	}
//
//
//}
